package com.tianquan.miracle.listener.core;/**
 * @author starsea
 * @date 2024-10-12 下午4:06
 */

import java.util.List;

/**
 * @BelongsProject: uploaddemo
 * @BelongsPackage: com.tianquan.miracle.listener
 * @Author: tianquan
 * @CreateTime: 2024-10-12  16:06
 * @Description: 事件源
 * @Version: 1.0
 */
public interface EventSource {

    void addEventListener(EventListener<?> listener);

    void addEventListeners(List<EventListener> listeners);

    void removeEventListener(EventListener<?> listener);

    void publishEvent(EventObject eventObject);

}
